package com.icinfo.cloud.provider.punish.fastcase.controller;

import com.icinfo.cloud.provider.punish.fastcase.dto.FastCaseAutoEndSaveDto;
import com.icinfo.cloud.provider.punish.fastcase.service.IFastCaseService;
import com.icinfo.framework.common.web.Result;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author shishengyao
 * @description
 * @date 2023/8/29
 */
@RestController
@RequestMapping("/app/punish/fast/case/end")
public class AppFastCaseEndController {
    @Resource
    private IFastCaseService fastCaseService;
    /**
     * 【V1.12.1】描述：保存简案快办自动结案
     *
     * @param saveDto 保存dto
     * @return {@link Result <String> }
     * @author shishengyao
     * @date 2023/08/24
     */
    @PostMapping("/saveFastCaseAutoEnd")
    public Result<String> saveFastCaseAutoEnd(@Validated @RequestBody FastCaseAutoEndSaveDto saveDto){
        return fastCaseService.saveFastCaseAutoEnd(saveDto);
    }
}
